* {
    box-sizing: border-box;
}

body {
    margin: 0 0 8px 0;
    color: black;
}

/* JavaScript check */
#noJS {
	margin: 0 auto;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 5px 15px 5px 15px;
	width: 50%;
	background-color: rgba(255, 0, 0, 0.2);
}

#noJS h2 {
	color: #AA0000;
	text-align: center;
}

#noJS p {
	color: #660000;
	text-align: justify;
}

#noJS #jslogo {
	float: left;
	margin: 5px 15px 5px 5px;
}

#workers-stats {
    min-width: 250px;
    margin: 10px 0 0 10px;
}

/* ---- grids ---- */
.grid-monitoring,
.grid-settings {
    background: transparent;
    max-width: 100%;
}

/* clearfix */
.grid-monitoring:after,
.grid-settings:after,
.grid-history:after {
    content: '';
    display: block;
    clear: both;
}

/* ---- grid-item ---- */
.grid-sizer-monitoring,
.grid-item-monitoring {
    width: 250px;
    margin: 10px 0 0 10px;
}

.grid-sizer-settings,
.grid-item-settings {
    width: 300px;
    /*height: 300px;*/
    margin: 10px 0 0 10px;
}

.grid-item-settings {
    float: left;
    height: auto;
    min-height: 150px;
}

.grid-item-monitoring {
    background-color: #88AA99 !important;
    float: left;
    height: auto;
    min-height: 260px;
}

.selectAllWorker {
    font-size: small;
    cursor: pointer;
}

.cleanAllHistory {
    font-size: small;
    cursor: pointer;
}

.span-icon {
    margin-left: 10px;
}

.hidden {
    display: none;
}

.tab {
    margin-left: 1em;
}

/* TODO edit according to paper-card */
.grid-item-monitoring:hover {
    background-color: #FFF !important;

    --paper-card-header: { /* TODO check */
        background-color: #E6A0A0 !important;
    };
    --paper-card-header-text: {
        color: #333 !important;
    };
}

/* TODO edit according to paper-card */
.grid-item-selected {
    background-color: #E6A0A0 !important;

    --paper-card-header: {
        background-color: #D73D32 !important;
    };
    --paper-card-header-text: {
        color: #666 !important;
    };
}

.worker-system-info {
    width: auto;
    overflow: hidden;
}

.submit_work_form {
    width: 100%;
    height: 50px;
    margin: 2%;
}

a {
    text-decoration: none !important;
    color: black !important;
}

/* EC2 instance request panel */
#addEC2NodeDialog {
    min-width: 575px;
    min-height: 480px;
}

/* card layout */
.card-image {
    overflow: hidden;
    padding: 5px;
    text-align: center;
}

.card-image > img {
    max-height: 125px;
    margin: 0 auto;
    max-width: 285px;
}

.card-actions {
    border-style: none;
    background-color: #D73D32;
}

.card-button {
    background-color: #D73D32 !important;
}

.horizontal {
    @apply --layout-horizontal;
}

.justified {
    @apply --layout-justified;
}
